# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

pkgname=perl-compress-bzip2
_realname=Compress-Bzip2
pkgver=2.28
pkgrel=3
pkgdesc="Interface to Bzip2 compression library"
arch=(x86_64)
license=(GPL2)
depends=(perl bzip2)
url="https://metacpan.org/release/Compress-Bzip2"
options=('!emptydirs')
source=(https://cpan.metacpan.org/authors/id/R/RU/RURBAN/${_realname}-${pkgver}.tar.gz)
sha512sums=('3b00eab4cec4ec62c2b590dc63e92b4f167407edcee3bdb6581d570bc82c47b6152eb0f21a8b748ac49e87c89a1b99358785609e8f832da16107b6cdc4d9e852')

build() {
  cd $_realname-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd $_realname-$pkgver
  make DESTDIR="$pkgdir" install
}
